# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils qt3

DESCRIPTION="LinScope is GUI(QT), port scanner with enumerating windows network shares (SMB). LinScope can save favorites list. You can add different ip address ranges and scan them apart or together. Linscope searches FTP and HTTP services too"

HOMEPAGE="http://linscope.sourceforge.net"

SRC_URI="http://voxel.dl.sourceforge.net/sourceforge/linscope/${P}.tar.gz"

LICENSE="GPL-2"


SLOT="0"

KEYWORDS="~x86 ~amd64"

IUSE=""


DEPEND="$(qt_min_version 3.3)"

RDEPEND=">=net-fs/samba-3.0.20"

S=${WORKDIR}/Linscope/linscope

src_compile() {
	${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake ${PN}.pro || die "qmake failed"
	${QTDIR}/bin/lrelease ${PN}.pro
	emake  || die "emake failed"
}

src_install() {
	make_desktop_entry linscope linscope linscope Network
	dodoc ../README.TXT ../TODO.TXT ../CHANGES.TXT  || die "could not install docs"
	insinto /usr/bin/
	doins ./linscope_*.qm
	dobin ./linscope ./lrpcscanip || die "could not install Linscope to /usr/bin/"
}
